<template>
<div>

	<Table :columns="columns" :data="obj.data" class="mt10"
	@on-selection-change="selectionChange"
	@on-select="select"
	></Table>

</div>
</template>

<script>


export default {
	
	name : 'dbtable',
	
	data () {
		return {
		  	columns: [
            	{
                    type: 'selection',
                    width: 60,
                    align: 'center'
                },
				{
					title: '列名',
					key: 'column_name',
				},
	        ],

		}
	},

	props : {
		obj: {
			type: Object,
			default () {
				return {}
			},
		}
	},

	components : {
		
	},

	computed : {

	},

	methods : {
		selectionChange (selection) {
			console.log(selection);
			this.obj.selection = selection;
		},

		select (selection, row) {
			console.log(selection);
			console.log(row);
		},
	},

	watch : {
	    
	},

	mounted () {
		
	},

}
</script>

<style scoped>

</style>
